.class Lrexsee/flash/FlashView$1;
.super Landroid/webkit/WebViewClient;
.source "FlashView.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/flash/FlashView;-><init>(Lrexsee/core/browser/Browser;Ljava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lrexsee/flash/FlashView;


# direct methods
.method constructor <init>(Lrexsee/flash/FlashView;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/flash/FlashView$1;->this$0:Lrexsee/flash/FlashView;

    .line 26
    invoke-direct {p0}, Landroid/webkit/WebViewClient;-><init>()V

    return-void
.end method


# virtual methods
.method public final onPageFinished(Landroid/webkit/WebView;Ljava/lang/String;)V
    .locals 6
    .param p1, "webview"    # Landroid/webkit/WebView;
    .param p2, "url"    # Ljava/lang/String;

    .prologue
    .line 29
    move-object v0, p1

    check-cast v0, Lrexsee/flash/FlashView;

    move-object v1, v0

    .line 30
    .local v1, "fv":Lrexsee/flash/FlashView;
    const/4 v2, 0x0

    .line 32
    .local v2, "i":I
    :goto_0
    invoke-virtual {v1}, Lrexsee/flash/FlashView;->getChildCount()I

    move-result v3

    .line 33
    .local v3, "j":I
    if-lt v2, v3, :cond_0

    .line 37
    .end local p0    # "this":Lrexsee/flash/FlashView$1;
    :goto_1
    return-void

    .line 34
    .restart local p0    # "this":Lrexsee/flash/FlashView$1;
    :cond_0
    invoke-virtual {v1, v2}, Lrexsee/flash/FlashView;->getChildAt(I)Landroid/view/View;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v4

    const-string v5, "com.adobe.flashplayer.FlashPaintSurface"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_1

    .line 35
    invoke-virtual {v1, v2}, Lrexsee/flash/FlashView;->getChildAt(I)Landroid/view/View;

    move-result-object p0

    .end local p0    # "this":Lrexsee/flash/FlashView$1;
    check-cast p0, Landroid/view/SurfaceView;

    invoke-static {v1, p0}, Lrexsee/flash/FlashView;->access$0(Lrexsee/flash/FlashView;Landroid/view/SurfaceView;)V

    .line 36
    # getter for: Lrexsee/flash/FlashView;->flashSurface:Landroid/view/SurfaceView;
    invoke-static {v1}, Lrexsee/flash/FlashView;->access$1(Lrexsee/flash/FlashView;)Landroid/view/SurfaceView;

    move-result-object v4

    const/4 v5, 0x0

    invoke-virtual {v4, v5}, Landroid/view/SurfaceView;->setZOrderMediaOverlay(Z)V

    goto :goto_1

    .line 39
    .restart local p0    # "this":Lrexsee/flash/FlashView$1;
    :cond_1
    add-int/lit8 v2, v2, 0x1

    .line 40
    goto :goto_0
.end method

.method public final shouldOverrideUrlLoading(Landroid/webkit/WebView;Ljava/lang/String;)Z
    .locals 3
    .param p1, "webview"    # Landroid/webkit/WebView;
    .param p2, "url"    # Ljava/lang/String;

    .prologue
    .line 44
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.VIEW"

    invoke-static {p2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 45
    .local v0, "intent":Landroid/content/Intent;
    invoke-virtual {p1}, Landroid/webkit/WebView;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    .line 46
    const/4 v1, 0x1

    return v1
.end method
